"""
# -*- coding: utf-8 -*-
# @Time    : 2023/5/23 11:11
# @Author  : 王摇摆
# @FileName: Train.py
# @Software: PyCharm
# @Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
"""
from RandonmForest_Boosting.Regression.Data import X, y
# from RandonmForest_Boosting.Regression.Model_Manual import adaboostr # 人工随机森林
from RandonmForest_Boosting.Regression.Model_Import import AdaBoostRegressor as adaboostr  # 第三方库随机森林

adar = adaboostr(n_estimators=50)
print('随机森林AdaBoost回归器已构造实例！')
adar.fit(X, y)
print('随机森林AdaBoost回归器已训练完毕！')
